<?php

namespace app\event;

class User
{
    protected $eventPrefix = 'User';

    public function onLogin($event)
    {
        echo __METHOD__;echo '<br />';
        dump('user login: welcome ' . $event['userName']);
    }

    public function onLogout($event)
    {
        dump('user logout: bye ' . ($event['userName']));
    }
}
